home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / B-C / C++ FAQ Reference 1.0 / C++ FAQ Reference 1.0.rsrc / TEXT_1930.txt < prev    next >
Encoding:
Text File  |  1993-06-30  |  370 b   |  10 lines

  1. Ex: the compiler says the following two are an error:
  2.     char  f(int i);
  3.     float f(int i);
  4.  
  5. A: Return types are not considered when determining unique signatures for overloading functions; only the number and type of parameters are considered. Reason: which function should be called if the return value is ignored?  Ex:
  6.  
  7.     main()
  8.     {
  9.       f(3);  //which should be invoked??
  10.     }